package telecom;

public class Test3 {

	
	
	public Test3()
	{
		
		Wireless w2 = new Wireless("Arun", "56790", 005,"prepaid", 25, 500, "iphone 4");
		Wireless w = new Wireless();
		CommonSubscriber csubs = new CommonSubscriber();
		CommonSubscriber csubs2 ;
		
		csubs2 = w;
		
		w.makeCall();
		w.sendSms();
		csubs.makeCall();
		
		//this is calling a make call fucntion in wireless class as this is pointing to wireless class
		//This is only possible if ake call is in both base and derived classes
		csubs2.makeCall();
		
		//this will call static method in common subscriber as this is a static calls 
		//which is a compile time decision by jvm
		csubs2.receiveCall();
		
		w.getVInPerson();
		
		
		
	}
	
	
	

	
}
